package com.landian.demo.fastJson.demo02;

import java.util.ArrayList;
import java.util.List;

//主人
class Master {
    private String name;
    private List<Cat> cats = new ArrayList<Cat>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Cat> getCats() {
        return cats;
    }

    public void setCats(List<Cat> cats) {
        this.cats = cats;
    }

    @Override
    public String toString() {
        return "Master [name=" + name + ", cats=" + cats + "]";
    }

}